#include<bits/stdc++.h>
using namespace std;
#define int long long
int n,a[100005],cnt[100005];
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);cout.tie(0);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
        cnt[a[i]]++;
    }
    sort(a+1,a+n+1);
    int lst=cnt[1];
    for(int i=2;i<=100000;i++){
        lst=max(0ll,lst-cnt[i]);
        lst+=cnt[i];
    }
    cout<<lst<<endl;
    return 0;
}